<?php
class PageController extends Zend_Controller_Action {

	private function _setPageActive() {
		$menuHelper = $this->view->getHelper('navigation')->navigation()->menu();
		$activePage	= $menuHelper->findBy('uri', $this->getRequest()->getRequestUri());

		if($activePage !== null) {
			$activePage->setActive(true);
		}
	}

	public function init() {
		$this->_setPageActive();
	}

	public function indexAction() {
		$page = $this->getRequest()->getParam('page');
		if(!empty($page)) {
			$this->_helper->viewRenderer->setRender($page);
		}
	}
}
?>
